package me.zingon.wxbus.model;


import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

public class Line {

  @TableId(type = IdType.AUTO)
  private Long id;
  private String name;
  private String gprsId;
  private String companyType;
  private String segmentId;
  private String startStationName;
  private String endStationName;
  private String startEndTime;
  private String rtSign;
  private Date createTime;
  private Date updateTime;
  private Integer isDeleted;

  public Line() {
  }

  public Line(JSONObject line) {
    this.name = line.getStr("name");
    this.gprsId = line.getStr("gprsId");
    this.companyType = line.getStr("companyType");
    this.segmentId = line.getStr("segmentID");
    this.startStationName = line.getStr("startStationName");
    this.endStationName = line.getStr("endStationName");
    this.createTime =new Date();
    this.isDeleted = 0;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getGprsId() {
    return gprsId;
  }

  public void setGprsId(String gprsId) {
    this.gprsId = gprsId;
  }

  public String getCompanyType() {
    return companyType;
  }

  public void setCompanyType(String companyType) {
    this.companyType = companyType;
  }

  public String getSegmentId() {
    return segmentId;
  }

  public void setSegmentId(String segmentId) {
    this.segmentId = segmentId;
  }

  public String getStartStationName() {
    return startStationName;
  }

  public void setStartStationName(String startStationName) {
    this.startStationName = startStationName;
  }

  public String getEndStationName() {
    return endStationName;
  }

  public void setEndStationName(String endStationName) {
    this.endStationName = endStationName;
  }

  public String getStartEndTime() {
    return startEndTime;
  }

  public void setStartEndTime(String startEndTime) {
    this.startEndTime = startEndTime;
  }

  public String getRtSign() {
    return rtSign;
  }

  public void setRtSign(String rtSign) {
    this.rtSign = rtSign;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public Integer getIsDeleted() {
    return isDeleted;
  }

  public void setIsDeleted(Integer isDeleted) {
    this.isDeleted = isDeleted;
  }
}
